<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>丢失物品管理系统添加页面</title>

    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../bower_components/Ionicons/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="../bower_components/morris.js/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="../bower_components/jvectormap/jquery-jvectormap.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="../bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
    <!-- DataTables -->
    <link rel="stylesheet" href="../bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="../bower_components/bootstrap-daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

    <link href="../css/universal.css" type="text/css" rel="stylesheet">
    <link href="../css/bootstrap.css" type="text/css" rel="stylesheet">
    <script src="../js/jquery-3.6.0.js"></script>
    <script src="../js/bootstrap.js"></script>
    <script src="../js/general.js"></script>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">


    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .pageButton {
            width: 40px;
            height: 32px;
            line-height: 32px;
            background-color: #337ab7;
            color: #f5f3fd;
            border: 1px;
        }

        .pageInput {
            width: 60px;
            height: 31px;
            line-height: 20px;
        }
    </style>

    <script type="text/javascript">
        $(function () {
            function FoundDaoClass() {
                this.lostID = 0;
                this.lost_name = "";
                this.lost_time = "";
                this.describe = "";
                this.place = "";
                this.sort = "";
                this.userID = "";
            }

            <%--var data = ${sessionScope.username};//字段名和值--%>
            var data = '<%=session.getAttribute("userid")%>';
            // data = "1";
            alert(data);
            $.ajax({
                url: "/lostAction",
                type: "post",
                data: {"method": "mine","userid":data},

                success: function (resultStr) {
                    /*存储接收到的所有丢失物品信息*/

                    let info = JSON.parse(resultStr);
                    console.log(info);
                    let foundDaos = JSON.parse(info.data.data);
                    console.log(foundDaos);

                    $("#showSumBox").text("数量:" + foundDaos.length + " 条");
                    if (foundDaos.length === 0) {
                        return;
                    }

                    let pagingNum = Math.ceil(foundDaos.length / 8);

                    for (let i = 0; i < foundDaos.length && i < 8; i++) {
                        let tr = $("<tr class='trStyle'></tr>");
                        //found_goods_name,time,describe,place,sort,userID
                        let td_1 = $("<td>" + foundDaos[i].lost_name + "</td>");
                        let td_2 = $("<td>" + foundDaos[i].lost_time + "</td>");

                        let td_3 = $("<td>" + foundDaos[i].describe + "</td>");
                        let td_4 = $("<td>" + foundDaos[i].place + "</td>");
                        let td_5 = $("<td>" + foundDaos[i].sort + "</td>");
                        let td_6 = $("<td>" + foundDaos[i].userID + "</td>");
                        let td_7 = $("<td>\n" +
                            "  <label>\n" +
                            "    <form action=\"/lostAction\" method=\"post\" >\n" +
                            "      <input type='hidden' name='method' value='delete'></input>\n" +
                            "      <input type='hidden' name='delete' value='"+foundDaos[i].lostID+"'></input>\n" +
                            "      <input class=\"btn btn-primary btn-block btn-flat\" type=\"submit\" value=\"删除该信息\">\n" +
                            "    </form>\n" +
                            "  </label>\n</td>");
                        //let td_5 = $("<td>" + students[i].stuBriefIntroduction + "</td>");
                        // let td_5 = $("<td>无</td>");
                        tr.append(td_1);
                        tr.append(td_2);
                        tr.append(td_3);
                        tr.append(td_4);
                        tr.append(td_5);
                        tr.append(td_6);
                        tr.append(td_7);
                        $("#mainTable").append(tr);
                    }

                    let pagination = $(".pagination");

                    //添加上一页按钮
                    pagination.append($('<li id="lastPageBtn" class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>'));
                    pagination.append($('<li class="active pageLi"><a href="#">1 <span className="sr-only"></span></a></li>'));
                    for (let i = 2; i <= 5 && i <= pagingNum; i++) {
                        pagination.append('<li class="pageLi"><a href="#">' + i + '<span className="sr-only"></span></a></li>');
                    }

                    let curPageIndex = 1;

                    //移动到指定下标
                    function moveAssignIndex(thisPointer, status = 666) {
                        let crtIndex = 0;
                        if (status === 666) {
                            crtIndex = parseInt($(thisPointer).text());
                        } else {
                            crtIndex = status;
                        }
                        curPageIndex = crtIndex;
                        //删除除了第一行之外的所有行
                        $("#mainTable tr").not(":eq(0)").remove();
                        let len = crtIndex * 8 < foundDaos.length ? crtIndex * 8 : foundDaos.length;
                        for (let index = crtIndex * 8 - 8; index < len; index++) {
                            let tr = $("<tr class='trStyle hand' ></tr>");
                            let td_1 = $("<td>" + foundDaos[index].lost_name + "</td>");
                            let td_2 = $("<td>" + foundDaos[index].lost_time + "</td>");

                            let td_3 = $("<td>" + foundDaos[index].describe + "</td>");
                            let td_4 = $("<td>" + foundDaos[index].place + "</td>");
                            let td_5 = $("<td>" + foundDaos[index].sort + "</td>");
                            let td_6 = $("<td>" + foundDaos[index].userID + "</td>");
                            let td_7 = $("<td>\n" +
                                "  <label>\n" +
                                "    <form action=\"/lostAction\" method=\"post\" >\n" +
                                "      <input type='hidden' name='method' value='delete'></input>\n" +
                                "      <input type='hidden' name='delete' value='"+foundDaos[index].lostID+"'></input>\n" +
                                "      <input class=\"btn btn-primary btn-block btn-flat\" type=\"submit\" value=\"删除该信息\">\n" +
                                "    </form>\n" +
                                "  </label>\n</td>");
                            //let td_5 = $("<td>" + students[index].stuBriefIntroduction + "</td>");
                            // let td_5 = $("<td>无</td>");
                            tr.append(td_1);
                            tr.append(td_2);
                            tr.append(td_3);
                            tr.append(td_4);
                            tr.append(td_5);
                            tr.append(td_6);
                            tr.append(td_7);
                            $("#mainTable").append(tr);
                        }
                    }

                    //默认为第一页
                    moveAssignIndex(null, 1);

                    function judgeIfDisabled(thisPointer) {
                        //如果第一条被选中,则不能用上一页
                        if (parseInt($(thisPointer).text()) === 1) {
                            $("#lastPageBtn").addClass("disabled");
                        } else {
                            $("#lastPageBtn").removeClass("disabled");
                        }

                        //如果最后条被选中,则不能用下一页
                        if (parseInt($(thisPointer).text()) === pagingNum) {
                            $("#nextPageBtn").addClass("disabled");
                        } else {
                            $("#nextPageBtn").removeClass("disabled");
                        }
                    }

                    //分页符被按下后
                    $(".pageLi").each(function () {
                        $(this).click(function () {
                            $(this).parent().children().each(function () {
                                $(this).removeClass("active");
                            })
                            $(this).addClass("active");
                            curPageIndex = parseInt($(this).text());
                            judgeIfDisabled(this);
                            moveAssignIndex(this);
                        });
                    });

                    //添加下一页按钮
                    pagination.append($('<li id="nextPageBtn"><a href="#" aria-label="Previous"><span aria-hidden="true">»</span></a></li>'));

                    //上一页按钮的点击事件
                    $("#lastPageBtn").click(function () {
                        //判断导航页中是否存在上一个页面
                        $(".pageLi").each(function () {
                            if (parseInt($(this).text()) === curPageIndex - 1) {
                                $(this).parent().children().each(function () {
                                    $(this).removeClass("active");
                                });
                                $(this).addClass("active");
                                curPageIndex--;
                                moveAssignIndex(this);
                                judgeIfDisabled(this);
                                return false;
                            }

                            //说明没有在当前分页符导航栏上
                            if (parseInt(pagination.find(".pageLi").eq(0).text()) !== 1) {
                                let curInd = parseInt(pagination.find(".pageLi").eq(0).text()) - 1;
                                pagination.find(".pageLi").each(function () {
                                    $(this).html('<a href="#">' + (curInd++) + '<span className="sr-only"></span></a>');
                                });
                                curPageIndex--;
                                moveAssignIndex(null, curPageIndex);
                                judgeIfDisabled(this);
                                return false;
                            }
                        })
                    });

                    //上一页按钮的点击事件
                    $("#nextPageBtn").click(function () {
                        //判断导航页中是否存在上一个页面
                        $(".pageLi").each(function () {
                            if (parseInt($(this).text()) === curPageIndex + 1) {
                                $(this).parent().children().each(function () {
                                    $(this).removeClass("active");
                                });
                                $(this).addClass("active");
                                curPageIndex++;
                                moveAssignIndex(this);
                                judgeIfDisabled(this);
                                return false;
                            }

                            //说明没有在当前分页符导航栏上
                            if (parseInt(pagination.find(".pageLi").eq(4).text()) !== pagingNum) {
                                let curInd = parseInt(pagination.find(".pageLi").eq(0).text()) + 1;
                                pagination.find(".pageLi").each(function () {
                                    $(this).html('<a href="#">' + (curInd++) + '<span className="sr-only"></span></a>');
                                });
                                curPageIndex++;
                                moveAssignIndex(null, curPageIndex);
                                judgeIfDisabled(this);
                                return false;
                            }
                        })
                    });

                    function clearFlag(index) {
                        $(".pageLi").children().each(function () {
                            $(this).removeClass("active");
                        });
                        $(".pageLi").children().each(function () {
                            if (parseInt($(this).text()) === index) {
                                $(this).addClass("active");
                            }
                            return false;
                        });
                    }


                    //添加到指定页面按钮
                    pagination.append($('<div style="display: inline-block; margin-left: 30px;"><input id="pageIndexInput" class="pageInput" type="number"><button id="gotoPageIndexBut" class="pageButton">Go</button></div>'));

                    //到指定页面的按钮
                    let pageInput = $("#pageIndexInput");
                    pageInput.attr("min", 1);
                    pageInput.attr("max", pagingNum);

                    function gotoPageIndexButClick() {
                        let curNum = (Math.ceil($("#pageIndexInput").val()) % pagingNum);
                        curNum = curNum === 0 ? 13 : curNum;    //防止为第0页

                        $("#pageIndexInput").val(curNum);
                        let status = false;
                        //判断导航页中是否存在当前页面
                        $(".pageLi").each(function () {
                            if (parseInt($(this).text()) === curNum) {
                                $(this).parent().children().each(function () {
                                    $(this).removeClass("active");
                                });
                                $(this).addClass("active");
                                curPageIndex = curNum;
                                moveAssignIndex(null, curPageIndex);
                                judgeIfDisabled(this);
                                status = true;
                                return false;
                            }
                        });

                        //如果在当前分页栏中执行过了就退出
                        if (status) {
                            return;
                        }

                        let curN = curNum;

                        if (curNum > pagingNum - 4) {
                            let front = 4 - (Math.abs(curNum - pagingNum));  //前面的数量
                            let liIndex = 0;
                            for (let i = front; i > 0; i--) {
                                $(".pageLi").eq(liIndex++).html('<a href="#">' + (curNum - i) + '<span className="sr-only"></span></a>');
                            }

                            for (let i = curNum; i <= pagingNum; i++) {
                                $(".pageLi").eq(liIndex++).html('<a href="#">' + (i) + '<span className="sr-only"></span></a>');
                            }
                            curPageIndex = curNum;
                            clearFlag(curNum);
                            moveAssignIndex(null, curPageIndex);
                            judgeIfDisabled(this);
                        } else {
                            for (let i = 0; i < 5; i++) {
                                $(".pageLi").eq(i).html('<a href="#">' + (curN++) + '<span className="sr-only"></span></a>');
                            }
                            curPageIndex = curNum;
                            clearFlag(curNum);
                            moveAssignIndex(null, curPageIndex);
                            judgeIfDisabled(this);
                        }
                    }

                    $("#gotoPageIndexBut").click(function () {
                        gotoPageIndexButClick();
                        gotoPageIndexButClick();
                    });
                },
                error() {
                    alert("连接服务器失败");
                }
            });
        });
    </script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <header class="main-header">
        <!-- Logo -->
        <a href="index2.html" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>主</b>页</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>主</b>页面</span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">

                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs">Alexander Pierce</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                                <p>
                                    Alexander Pierce - Web Developer
                                    <small>Member since Nov. 2012</small>
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <li class="user-body">
                                <div class="row">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Followers</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Sales</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Friends</a>
                                    </div>
                                </div>
                                <!-- /.row -->
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" class="btn btn-default btn-flat">Profile</a>
                                </div>
                                <div class="pull-right">
                                    <a href="#" class="btn btn-default btn-flat">Sign out</a>
                                </div>
                            </li>
                        </ul>
                    </li>

                </ul>
            </div>
        </nav>
    </header>

    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>Alexander Pierce</p>
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
            <!-- search form -->
            <form action="#" method="get" class="sidebar-form">
                <div class="input-group">
                    <input type="text" name="q" class="form-control" placeholder="查找功能...">
                    <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
                </div>
            </form>
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">主菜单</li>
                <li class="active treeview">
                    <a href="#">
                        <i class="fa fa-dashboard"></i> <span>丢失物品</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li class="active"><a href="../jsp/addthinguser.jsp"><i class="fa fa-circle-o"></i> 增加丢失物</a></li>
                        <li><a href="../jsp/sortLostthinguser.jsp"><i class="fa fa-circle-o"></i> 查看所有失物信息</a></li>
                        <li><a href="../jsp/sortqueryLostthinguser.jsp"><i class="fa fa-circle-o"></i> 查找失物信息</a></li>
                        <li><a href="../jsp/sortUserqueryLostthing.jsp"><i class="fa fa-circle-o"></i> 查看个人发布失物信息</a></li>
                    </ul>
                </li>

                <li class="active treeview">
                    <a href="#">
                        <i class="fa fa-feed"></i> <span>招领物品</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li class="active"><a href="../jsp/addthingFounduser.jsp"><i class="fa fa-circle-o"></i> 增加招领物</a></li>
                        <li><a href="../jsp/sortthinguser.jsp"><i class="fa fa-circle-o"></i> 查看所有招领信息</a></li>
                        <li><a href="../jsp/sortFoundthinguser.jsp"><i class="fa fa-circle-o"></i> 查找招领信息</a></li>
                        <li><a href="../jsp/sortUserqueryFound.jsp"><i class="fa fa-circle-o"></i> 查看个人发布找寻信息</a></li>
                    </ul>
                </li>


<%--                <li class="header">其他功能</li>--%>

<%--                <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>留言板</span></a></li>--%>
<%--                <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>注意事项</span></a></li>--%>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">

        <!-- Main content -->
        <section class="content">

            <h1 class="mainTitle">查询丢失物品信息页面</h1>
            <label id="showSumBox"></label>

            <table class="table table-hover tableStyle" id="mainTable">
                <tr class="tableTitle">
                    <td>丢失物品</td>
                    <td>丢失时间</td>
                    <td>描述</td>
                    <td>地点</td>
                    <td>种类</td>
                    <td>用户编号</td>
                </tr>
            </table>

            <center style="position: fixed; top: 480px; left: 0; right: 0;">
                <nav aria-label="...">
                    <ul class="pagination">

                    </ul>
                </nav>
            </center>



        </section>
    </div>
    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 1.0.0
        </div>
        <strong>项目完成时间 &copy; 2023-2024 <a href="https://adminlte.io"> 丢失物品管理系统</a>.</strong>
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
            <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">Recent Activity</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-birthday-cake bg-red"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                                <p>Will be 23 on April 24th</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-user bg-yellow"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>

                                <p>New phone +1(800)555-1234</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>

                                <p>nora@example.com</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <i class="menu-icon fa fa-file-code-o bg-green"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>

                                <p>Execution time 5 seconds</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

                <h3 class="control-sidebar-heading">Tasks Progress</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Custom Template Design
                                <span class="label label-danger pull-right">70%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Update Resume
                                <span class="label label-success pull-right">95%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-success" style="width: 95%"></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Laravel Integration
                                <span class="label label-warning pull-right">50%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:void(0)">
                            <h4 class="control-sidebar-subheading">
                                Back End Framework
                                <span class="label label-primary pull-right">68%</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

            </div>
            <!-- /.tab-pane -->
            <!-- Stats tab content -->
            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
            <!-- /.tab-pane -->
            <!-- Settings tab content -->
            <div class="tab-pane" id="control-sidebar-settings-tab">
                <form method="post">
                    <h3 class="control-sidebar-heading">General Settings</h3>

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Report panel usage
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Some information about this general settings option
                        </p>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Allow mail redirect
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Other sets of options are available
                        </p>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Expose author name in posts
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Allow the user to show his name in blog posts
                        </p>
                    </div>
                    <!-- /.form-group -->

                    <h3 class="control-sidebar-heading">Chat Settings</h3>

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Show me as online
                            <input type="checkbox" class="pull-right" checked>
                        </label>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Turn off notifications
                            <input type="checkbox" class="pull-right">
                        </label>
                    </div>
                    <!-- /.form-group -->

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Delete chat history
                            <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
                        </label>
                    </div>
                    <!-- /.form-group -->
                </form>
            </div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 3 -->
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="../bower_components/raphael/raphael.min.js"></script>
<script src="../bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="../bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="../plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="../bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="../bower_components/moment/min/moment.min.js"></script>
<script src="../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="../bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
</body>
</html>
